//package com.zpark.controller.exception;
//
//import com.sun.org.apache.bcel.internal.generic.NEW;
//import org.springframework.boot.web.servlet.error.ErrorController;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * @author xiaoyu
// * @version 1.0 2022/10/8
// */
//@RestController
//public class ErrorController_ implements ErrorController {
//    private final static String ERROR_PATH = "/error";
//
//    @Override
//    public String getErrorPath() {
//        return ERROR_PATH;
//    }
//
//    @RequestMapping(ERROR_PATH)
//    public Map error(HttpServletRequest request, HttpServletResponse response) {
//        HashMap<String, Object> map = new HashMap<>();
//        map.put("code", "404");
//        map.put("msg", "请求错误~~");
//        return map;
//    }
//}
